import request from '@/utils/request'

// 查询路灯管养导入列表
export function listLampImportBase(query) {
  return request({ method: 'get', params: query,url: '/standingbook/lampImportBase/list'})
}

// 查询路灯管养导入详细
export function getLampImportBase(batchNo) {
  return request({ url: '/standingbook/lampImportBase/' + batchNo, method: 'get'  })
}

// 新增路灯管养导入
export function addLampImportBase(data) {
  return request({url: '/standingbook/lampImportBase',method: 'post',data: data})
}

// 修改路灯管养导入
export function updateLampImportBase(data) {
  return request({method: 'put',data: data,url: '/standingbook/lampImportBase' })
}

// 删除路灯管养导入
export function delLampImportBase(batchNo) {
  return request({  method: 'delete', url: '/standingbook/lampImportBase/' + batchNo  })
}

export function importData(data) {
  return request({
    url: '/standingbook/lampImportBase/importData',
    method: 'post',
    data: data
  })
}